package spec.shiqilin.clazz.inherit.Unit3.inherit.task32.task31;

public class LittleStudent {

    String xh;
    String xm;
    String xx;

    //小学生才有的属性
    String pxb;
    //小学生的成员方法
    String attendPxb(){
        return "参加"+pxb;
    }
    //
    LittleStudent(String xh,String xm,String xx){
        this.xh=xh;
        this.xm=xm;
        this.xx=xx;
    }

    @Override
    public String toString() {
        return "LittleStudent{" +
                "xm='" + xm + '\'' +
                "xh='" + xh + '\'' +
                "xx='" + xx + '\'' +
                "pxb='" + pxb + '\'' +

                '}';
    }
}